#!/usr/bin/env python

from ecmwfapi import ECMWFDataServer

# To run this example, you need an API key
# available from https://api.ecmwf.int/v1/key/

server = ECMWFDataServer()

server.retrieve({
          'dataset' : "interim",
          'class'   : "ei",
          'type'    : "an",
          'stream'  : "oper",
          'levtype' : "pl",
          'levelist': "1/2/3/5/7/10/20/30/50/70/100/125/150/175/200/225/250/300/350/400/450/500/550/600/650/700/750/775/800/825/850/875/900/925/950/975/1000",
          'param'   : "129.128/130.128/157.128/246.128",
          'date'    : "2016-06-24",
          'time'    : "12",
          'step'    : "0",
          'format'  : "netcdf",
          'resol'   : "auto",
          'area'    : "41.0/93.0/35.0/99.0",
          'grid'    : "0.125/0.125",
          'target'  : "ggap201606241200.nc",
                })
